<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<form id="pagerForm" method="post" action="user.do">

	<input type="hidden" name="sid" value="${param.sid}" />
	<input type="hidden" name="sname" value="${param.sname}" />
	<input type="hidden" name="sage" value="${param.sage}" />
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="currentPage" value="${para.pageNum}" />
	<input type="hidden" name="numPerPage" value="${para.numPerPage}" />
</form>


<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="user.do" method="post">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					ID：<input type="text" name="sid" />
				</td>
				<td>
					姓名：<input type="text" name="sname" />
				</td>
				<td>
					年龄：<input type="text" name="sage" "/>
				</td>
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="usermodify.do" target="navTab"><span>添加</span></a></li>
			<li><a class="delete" href="userdel.do?uid={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="usermodify.do?uid={sid_user}" target="navTab"><span>修改</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="user2excel.do?filename=user.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="150" align="center">ID</th>
				<th width="150" align="center">姓名</th>
				<th width="150" align="center">年龄</th>
			</tr>
		</thead>
		<tbody>
			 <c:forEach items="${userlist}" var="node">
			      <tr target="sid_user" rel="${node.id}">
			         <td align="center"><c:out value="${node.id}"></c:out></td>
				     <td align="center"><c:out value="${node.aname}"></c:out></td>
				     <td align="center"><c:out value="${node.aage}"></c:out></td>
				  </tr>
             </c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="5"  ${para.numPerPage==5?"selected":""}>5</option>
				<option value="10" ${para.numPerPage==10?"selected":""}>10</option>
				<option value="20" ${para.numPerPage==20?"selected":""}>20</option>
				<option value="30" ${para.numPerPage==30?"selected":""}>30</option>
			</select>
			<span>条，共${para.totalCount}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="${para.totalCount}" numPerPage="${para.numPerPage}" pageNumShown="${para.pageNumShown}" currentPage="${para.pageNum}"></div>

	</div>
</div>
